package lab02.test17;

public class Test {
    public static void main(String[] args) {
        int[] numbers=new int[10];
        numbers[0] = 12;
        numbers[1] = 13;
        numbers[2] = 18;
        numbers[3] = 155;
        numbers[4] = 155;
        numbers[5] = 133;
        numbers[6] = 133;
        numbers[7] = 133;
        numbers[8] = 133;
        numbers[9] = 133;
        System.out.println(numbers[0]);
        System.out.println(numbers[1]);
        System.out.println(numbers[2]);
        System.out.println(numbers[3]);
        System.out.println(numbers[4]);
        System.out.println(numbers[5]);
        System.out.println(numbers[6]);
        System.out.println(numbers[7]);
        System.out.println(numbers[8]);
        System.out.println(numbers[9]);

        int index;
        for(index=0;index<numbers.length;index++){
            }
        System.out.println(numbers[index]);


    int sum=0;
    int i;
        for (i=0;i<numbers.length;i++){
        sum+=numbers[i];
    }
        System.out.println("总和是:"+sum);
    }
}
